<?php
namespace App\Http\Requests\Api;
use Illuminate\Validation\Rule;

class CaptchaRequest extends FormRequest
{
    public function rules()
    {
        return [
            'phone' => [
                'required',
                'phone:CN,mobile',
                Rule::unique('users')]
        ];
    }
}
